public class Pancakes {
  public int minutesNeeded ( int numCakes, int capacity ) {
  
  int left = numCakes%capacity;
    if ( left == 0 ){
      return numCakes/capacity*2*5;
    }
    else {
      return numCakes/capacity*2*5 + 2*5;  //when numCakes == 0, still need to cook both sides of the LEFT cakes.
    }
  }
}